<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="../../../inc/global.jsp" %><%@ include file="../../top.jsp" %>
<compress:html compressCss="true" compressJavaScript="true" enabled="true" >
<!doctype html>
<html>
<head>
<title><fmt:message key="jsp.title.mall.admin.product.item.spu"/></title>
<%@ include file="../head.jsp" %>
<style type="text/css">
table tr td em {display: inline-block; margin: 0 3px; color:#000;}
</style>
<script type="text/javascript">
$(function() {
    tableTrMouseOver($('table tr'));
});// all ready
</script>
</head>
<body>
<div id="dialog-confirm">

</div>
<div class="main">
    <div class="wrapper">
        <%@include file="../../header.jsp" %>
        <%@include file="../sidebar.jsp"%>
        <!-- sidebar end -->
        <div class="content item-form">
            <div class="menu-tab">
                <ul>
                    <li class="slt"><a href="/mall/adm/product/items">商品管理</a></li>
                    <li><a href="/mall/adm/product/item/create">商品录入</a></li>
                </ul>
            </div>
            <table>
                <tr>
                    <th>所属分类</th>
                    <th>品牌</th>
                    <th>产品型号/标准名称</th>
                    <th>商品展示名称</th>
                    <th>描述参数</th>
                    <th style="text-align:center; width:30px">修改</th>
                </tr>
                <c:forEach var="item" items="${items}">
                <tr>
                    <td><c:forEach var="nav" items="${item.navList}"><em>${nav.name}</em></c:forEach></td>
                    <td>${item.brand.name}</td>
                    <td>${item.name}</td>
                    <td>${item.displayName}</td>
                    <td><c:forEach var="attrVal" items="${item.attrValList}"><em>${attrVal.alias}</em></c:forEach></td>
                    <td style="text-align:center;"><a href="/mall/adm/product/item/edit?id=${item.id}">修改</a></td>
                </tr>
                </c:forEach>
            </table>
        </div>
    </div>
</div>
</body>
</html>
<%@ include file="../../bottom.jsp" %>
</compress:html>